package com.zx.service.impl;/*
 *@program:SSM
 *@author: zhangjian
 *@Time: 2021/7/27  9:12
 */

import com.zx.DAO.FundDao;
import com.zx.entity.Funds;
import com.zx.service.FundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FundServiceImpl implements FundService {

    @Resource
    private FundDao fundDao;

    //查询申请列表
    @Override
    public List<Funds> findDai() {
        List<Funds> list = fundDao.findDai();
        return list;
    }

    @Override
    public List<Funds> findYi() {
        List<Funds> list = fundDao.findYi();
        return list;
    }

    //申请经费
    @Override
    public void addFund(Funds funds) {
        fundDao.addFund(funds);
    }

    //更新状态为申请
    @Override
    public void updateFund(Integer pid) {
        fundDao.updateFund(pid);
    }

    //删除申请
    @Override
    public void deleteFund(Integer pid) {
        fundDao.deleteFund(pid);
    }

    @Override
    public List<Funds> findTong() {
        List<Funds> list = fundDao.findTong();
        return list;
    }
}
